package com.mh.system.service.impl;

import com.mh.system.mapper.SysRoleMapper;
import com.mh.system.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public Set<String> selectRoleKeysByUserId(Long userId) {
        Set<String> roles = roleMapper.selectRolesByUserId(userId);
        return roles;
    }
}
